GBML manual / 3D

view3d_radius

Sets how close view3d_move lets the camera come to a wall, in pixels. It starts at about 2.4.

Game Boy: not available

Game Boy Color: not available

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

view3d_radius(pixels)

Arguments

NameType
pixelsreal

Returns

Nothing.

Description

Sets how close view3d_move lets the camera come to a wall, in pixels. It starts at about 2.4.

The camera is a small square this many pixels from its middle to each side. Keep it under 4, half a tile, or the camera cannot pass through a corridor one tile wide.

Example

view3d_start(ts_doc_walls);
view3d_radius(3);

The camera now keeps 3 pixels from every wall.

On the GBA

The camera is a small square this many pixels from its middle to each side. Keep it under 4 (half a tile) or the camera cannot pass through a one-tile corridor.

See also: Collision in 3Dview3d_move